import http from './axios'

export const getData = () => {
  return http.request({
    url: '/home/getData',
    method: 'get'
  })
}

export const getUserList = (params) => {
  return http.request({
    url: '/user/getUserList',
    method: 'get',
    params
  })
}

export const addUserApi = (data) => {
  return http.request({
    url: '/user/addUser',
    method: 'post',
    data
  })
}

export const editUserApi = (data) => {
  return http.request({
    url: '/user/editUser',
    method: 'post',
    data
  })
}
export const deleteUserApi = (data) => {
  return http.request({
    url: '/user/deleteUser',
    method: 'post',
    data
  })
}